import { Injectable, EventEmitter } from '@angular/core';

@Injectable({
  providedIn: 'root'
})
export class GlobalService {

  symbol: boolean;

  private _isLogin = false;

  public set isLogin(isLogin: boolean) {
    this._isLogin = isLogin;
    this.loginStatusChanged.emit(isLogin);
  }

  public get isLogin(): boolean {
    return this._isLogin;
  }

  public loginStatusChanged: EventEmitter<any> = new EventEmitter<any>();

  constructor() {
  }
}
